package com.thinkingcoder.tccache.constant;

public interface CommandConstants {

    interface CommonCmd {
        String COMMAND = "COMMAND";
        String INFO = "INFO";
        String PING = "PING";
    }

    interface StringCmd {
        String SET = "SET";
        String GET = "GET";

        String MSET = "MSET";
        String MGET = "MGET";

        String STRLEN = "STRLEN";
        String DEL = "DEL";
        String EXISTS = "EXISTS";

        String INCR = "INCR";
        String DECR = "DECR";
    }

    interface ListCmd {
        String LPUSH = "LPUSH";
        String LPOP = "LPOP";
        String LLEN = "LLEN";
        String LINDEX = "LINDEX";
        String LRANGE = "LRANGE";

        String RPUSH = "RPUSH";
        String RPOP = "RPOP";
    }

    interface SetCmd {
        String SADD = "SADD";
        String SMEMBERS = "SMEMBERS";
        String SCARD = "SCARD";
        String SISMEMBER = "SISMEMBER";
        String SREM = "SREM";
        String SPOP = "SPOP";
    }

    interface HashCmd {
        String HSET = "HSET";
        String HGET = "HGET";
        String HGETALL = "HGETALL";
        String HLEN = "HLEN";
        String HDEL = "HDEL";
        String HEXISTS = "HEXISTS";
        String HMGET = "HMGET";
    }

    interface ZSetCmd {
        String ZADD = "ZADD";
        String ZCARD = "ZCARD";
        String ZSCORE = "ZSCORE";
        String ZREM = "ZREM";
        String ZRANK = "ZRANK";
        String ZCOUNT = "ZCOUNT";
    }

}
